package com.example.mylibrarybase.yumengmengtest;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.example.mylibrarybase.R;
import com.example.mylibrarybase.base.baseui.BaseActivity;

import java.util.ArrayList;

public class MainActivity_test extends BaseActivity {

    private RecyclerView mRce_;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
    }

    @Override
    public int getlayouXML() {
        return R.layout.activity_main_test;
    }

    @Override
    public void initView() {
        mRce_ = (RecyclerView) findViewById(R.id.rce_);
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
        linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
        mRce_.setLayoutManager(linearLayoutManager);
        ArrayList<vv> vvs = new ArrayList<>();
        for (int i = 0; i < 50; i++) {
            vvs.add(new vv("i"+i));
        }
        Myadapter myadapter = new Myadapter(this, vvs);
        mRce_.setAdapter(myadapter);
    }

    @Override
    public void initData() {

    }
}
